package com.quectel.core.module.partybuildingsurvey.dto.count;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhangheng
 * @email nolan.zhang@quectel.com
 * @date 2023/6/21 9:56
 * @description 填空题统计
 */
@Data
@Schema
public class PartySurveyPersonRecordEvaluateCount implements Serializable {
    @Schema(description = "分数数量统计")
    private List<EvaluateCount> evaluateCounts ;
    @Schema(description = "分数统计")
    private EvaluateStatistics evaluateStatistics ;

    /**
     * 填空题只统计答题数量
     */
    @Data
    @Schema
    public static class EvaluateCount implements Serializable{
        private Double score;
        private Long count = 0L;
    }

    /**
     * 填空题只统计答题数量
     */
    @Data
    @Schema
    public static class EvaluateStatistics implements Serializable{
        private Double minScore;
        private Double maxScore;
        private Double avgScore;
    }
}
